﻿@model WeProjectsModel.Tag
<style type="text/css">
    input[type="text"].text-box {
        width: 160px;
    }
</style>
@{
    ViewBag.Title = "Edit";
}

<h2>编辑标签</h2>
<p class="buttonIn">
    @Html.ActionLink("返回列表", "Index")
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="form-horizontal">
        <legend>Tag</legend>

        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label">标签代码</label>
            <div class="col-xs-10 col-md-10">
                @Html.EditorFor(model => model.Code)
                @Html.ValidationMessageFor(model => model.Code)
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label">标签名称</label>
            <div class="col-xs-10 col-md-10">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label"></label>
            <div class="col-xs-10 col-md-10">
                <input type="submit" value="提交" class="btn btn-success" />
            </div>
        </div>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
